﻿@using MalkiSumWeb.Controllers;
@{
    MalkiSumWeb.Models.SumrizDBEntities db = new MalkiSumWeb.Models.SumrizDBEntities();

    var Fields = db.Fields.ToList();

    var myDocs = db.Files.Where(m => m.MemberID == MainController.myUserID && m.IsDeleted != true).Select(x => x.FieldID).Distinct(); 
      
        
}
@model MalkiSumWeb.Models.File
@{
    ViewBag.Title = "My Documents";
    Layout = "~/Views/Shared/_LayoutUser.cshtml";
}
@Html.Partial("_LogOnSideBar")
<div class="col-lg-10">
    <h2>
        My Documents</h2>
    @foreach (int x in myDocs)
    {    
        @Html.Action("FieldView", "Files", new { cat = x, q = "", UserID = MainController.myUserID });
    }
</div>